// request
import ajax from '../service/request.js'

//api
export function listApi(params) {
    return ajax({
        // url: '/satell/messageConfig/list',
        url: '/satell/messageConfig/list2',
        method: 'post',
        data: params,
    })
}


//save
export function saveOrUpdate(params) {
    return ajax({
        // url: '/satell/messageConfig/list',
        url: '/satell/messageConfig/saveOrUpdate',
        method: 'post',
        data: params,
    })
}

// delete

export function deleteApi(params) {
    return ajax({
        // url: '/satell/messageConfig/list',
        url: '/satell/messageConfig/delete',
        method: 'post',
        data: params
    })
}
// /dictionary/getByKey/
export function getall_options(params) {
    return ajax({
        // url: '/satell/messageConfig/list',
        url: '/dictionary/getByKey/issueOrganization',
        method: 'get',
        data: params,
    })
}
export function getall_optionss(params) {
    return ajax({
        // url: '/satell/messageConfig/list',
        url: '/dictionary/getByKey/business',
        method: 'get',
        data: params,
    })
}





// 离线文件页面
// 列表查询接口
export function findOfflineFile(params) {
    return ajax({
        url: '/offlineFile/findOfflineFile',
        method: 'post',
        data: params,
    })
}

// 模糊查询 /findFileByFileName
export function findFileByFileName(params) {
    return ajax({
        url: '/offlineFile/findFileByFileName',
        method: 'post',
        data: params,
    })
}

// 编辑 和上传同一个接口 /updateOfflineFileById
export function upload(params) {
    return ajax({
        url: '/offlineFile/upload',
        method: 'post',
        data: params,
    })
}

// 删除
// /deleteOfflineFileById

export function deleteOfflineFileById(params) {
    return ajax({
        url: '/offlineFile/deleteOfflineFileById',
        method: 'post',
        data: params,
    })
}
